import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/user/user_info',
    method: 'get',
    params: { token }
  })
}

export function logint(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function ergouone(data) {
  return request({
    url: '/case_library/get_case_list',
    method: 'post',
    data
  })
}
export function gettotal() {
  return request({
    url: '/ci/get_total',
    method: 'get'
  })
}
export function queryreport(data) {
  return request({
    url: '/ci/query_report',
    method: 'get',
    data
  })
}
export function getProjectName(groudId) {
  return request({
    url: '/get_project/' + groudId,
    method: 'get'
  })
}
export function getGroupName() {
  return request({
    url: '/get_group',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}

export function getjinyue() {
  return request({
    url: '/user/jinyue',
    method: 'get'
  })
}

export function search(data) {
  return request({
    url: '/user/testpost',
    method: 'post',
    data
  })
}
export function handlerList() {
  return request({
    url: '/user/handler_list',
    method: 'get'
  })
}
